package com.example.oasystem.service;

import com.example.oasystem.entity.mail.AoaInMailListOfSun;
import com.example.oasystem.entity.mail.AoaMailnumberOfl;
import com.example.oasystem.entity.status.AoaStatusList;
import com.example.oasystem.entity.type.AoaTypeList;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface AoaMailnumberServiceOfl {

    PageInfo<AoaMailnumberOfl> mailNumbers(Long mailNumUserId,
                                           String baseKey,
                                           Integer type,
                                           Integer time,
                                           Integer status,
                                           int pageNum,
                                           int pageSize);
    PageInfo<AoaMailnumberOfl> mailNumber(Long mailNumUserId, String baseKey, int pageNum, int pageSize);

    int deleteByPrimaryKey(Long mailNumberId);

    int insertSelective(AoaMailnumberOfl record);

    int updateByPrimaryKeySelective(AoaMailnumberOfl record);

    List<AoaStatusList> selectStatusListByRealModel(String statusModel);

    List<AoaTypeList> selectTypeListByRealModel(String typeModel);

    AoaMailnumberOfl selectByPrimaryKey(Long mailNumberId);

    int delMailList(Long mailNumberId);

    List<AoaInMailListOfSun>mailList(Long mailNumberId);

    int delMailReciver(Long mailId);

    int delAttachment(Long attachmentId);
}
